﻿using Google.Protobuf.WellKnownTypes;

namespace Elio.Sessions;

public class SensorSession : BaseSession
{
    protected override string SessionName => base.SessionName = "Sensor";

    protected override async Task OnReceive(string name, long sessionId, long futureId, params Any[] argv)
    {
        switch (name)
        {
            case "getList":
                GetList();
                break;

            case "getDefault":
                GetDefault();
                break;

            case "registerListener":
                RegisterListener();
                break;

            case "unregisterListener":
                UnregisterListener();
                break;

            default:
                await base.OnReceive(name, sessionId, futureId, argv);
                break;
        }
    }

    private static void GetList() { }
    private static void GetDefault() { }
    private static void RegisterListener() { }
    private static void UnregisterListener() { }
}